-- GENERATED SPELL FOR [Prince Galen Trollbane] --


function spell0_2607(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_2607', 30284, 1)
end

function spell1_2607(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2607', 30254, 1)
end

function Sorts_2607(pUnit, Event)
local choix_sorts_2607 = math.random(0, 1)
if choix_sorts_2607 == 0 then
pUnit:RegisterEvent('spell0_2607', 1, 1)
end
if choix_sorts_2607 == 1 then
pUnit:RegisterEvent('spell1_2607', 1, 1)
end
end

function mob2607_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2607', math.random(1500, 3000), 1)
end

function mob2607_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2607_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2607_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2607, 1, 'mob2607_Action')
RegisterUnitEvent(2607, 2, 'mob2607_Leave')
RegisterUnitEvent(2607, 3, 'mob2607_Kill')
RegisterUnitEvent(2607, 4, 'mob2607_Die')
